﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Activities;
using StandardFeatures;

namespace EgneAktiviteter
{

    public sealed class WriteLine : CodeActivity
    {
        public InArgument<string> Text { get; set; }
        public InArgument<ConsoleColor> Color { get; set; }

        protected override void Execute(CodeActivityContext context)
        {
            string text = context.GetValue(this.Text);
            ConsoleColor color = context.GetValue(this.Color);

            ConsoleTalker.WriteLine(text, color);
        }
    }
}
